package cn.tedu.property_management_system.mapper;

import cn.tedu.property_management_system.entity.Owner;
import cn.tedu.property_management_system.entity.VO.OwnerVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OwnerMapper {

    OwnerVO getOwnerVOByTelephoneAndIdNumber(@Param("telephone") String telephone, @Param("idNumber") String idNumber);

    List<OwnerVO> getListOwnerVO();

    OwnerVO getById(Integer id);

    int insertOwner(Owner owner);

    int deleteOwner(Integer id);

    int updateOwner(Owner owner);

    OwnerVO getByName(String ownerName);


}
